globalThis.cc_GamewithMath = {
    GetDistance(P1X, P1Y, P2X, P2Y) {
        return runtime.callFunction("math_get_distance", P1X, P1Y, P2X, P2Y)
    },
    RandomNum(Min, Max) {
        var Range = Max - Min;
        var Rand = Math.random();
        var num = Min + Math.round(Rand * Range);
        return num;
    },
    RandomNumfor2(Min, Max) {
        var Range = Max - Min;
        var Rand = Math.random();
        var getn = Rand * Range
        var pp = Math.round(getn*100)/100
        var num = Min + pp
        return pp;
    }
}
export default cc_GamewithMath;